<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" 
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml">
    <xsl:output method="html" indent="yes" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/>
	
    <xsl:template match="/">
		<xsl:apply-templates select="document" />
    </xsl:template>
 
    <xsl:template match="document">
        <!--
        theme.xsl
        
        Copyright 2010 Fedorchenko Alexander <sos20@list.ru>
        
        This program is free software; you can redistribute it and/or modify
        it under the terms of the GNU General Public License as published by
        the Free Software Foundation; either version 2 of the License, or
        (at your option) any later version.
        
        This program is distributed in the hope that it will be useful,
        but WITHOUT ANY WARRANTY; without even the implied warranty of
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        GNU General Public License for more details.
        
        You should have received a copy of the GNU General Public License
        along with this program; if not, write to the Free Software
        Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
        MA 02110-1301, USA.
		-->
        <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru" lang="ru">
		<head>
			<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
			
			<title><xsl:value-of select="//title"/></title>
			<link rel="stylesheet" type="text/css" href="/style/style.css" media="screen" title="style (screen)" />
			
			<script type="text/javascript" src="/js/jquery-1.4.1.js"></script>
			<!--<script type="text/javascript" src="/litera/tinymce/examples/litera.js"></script>-->
			<script type="text/javascript" src="/js/jquery.ba-hashchange.js"></script>
			
			<script type="text/javascript" src="/jwchat/config.js"></script>
			<script type="text/javascript" src="/jwchat/shared.js"></script>
			<script type="text/javascript" src="/jwchat/browsercheck.js"></script>
			<script type="text/javascript" src="/jwchat/sounds.js"></script>
			<script type="text/javascript" src="/jwchat/statusLed.js"></script>
			<script type="text/javascript" src="/jwchat/jsjac.js"></script>
<!--
			Debugger
			<script type="text/javascript" src="/jwchat/Debugger.js"></script>
-->
			<script type="text/javascript" src="/jwchat/test_jwchat.js"></script>
			<script type="text/javascript" src="/jwchat/roster.js"></script>
			
			
		</head>
	<body>
		<div id="header">
			<h1><xsl:value-of select="user/@nic"/><span>@<xsl:value-of select="//site_name2"/></span></h1>
			<big><xsl:value-of select="//site_name"/></big>
		</div>
		<div id="menu">
		<ul>
			<xsl:for-each select="/document/menu/object">
				<li>
					<a href="{href}"><xsl:value-of select="name"/></a>
				</li>
			</xsl:for-each>
		</ul>
		</div>
		<div id="main">
			<div id="container" >
				<div id="subnav">
					<ul>
						<xsl:for-each select="/document/subnav/object">
							<li class="{@class}">
								<a href="{href}"><xsl:value-of select="name"/></a>
							</li>
						</xsl:for-each>
					</ul>
				</div>
				<div id="extras">		
					<h2>Пропущено</h2>
					<ul>
						<li>
							<p>Добавлен <a href="../search/search_username.pl">поиск пользователей</a></p>
						</li>
						<li>
							<p><a href="http://sos20.livejournal.com/4823.html">График</a> работ по выпуску 0.2</p>
						</li>
						<li>
							<p>Состоялся релиз версии 0.1, у нас не большой перерыв и дальше, в гору)</p>
						</li>
					</ul>
					<hr />
					<xsl:apply-templates select="message"/>
					
					<p><a href="http://www.openwebdesign.org/">Open Web Design</a><br />
					<a rel="nofollow" href="http://validator.w3.org/check?uri=referer">XHTML 1.0 Strict</a><br />
					<a rel="nofollow" href="http://jigsaw.w3.org/css-validator/check/referer">Valid CSS</a> </p>
					<p>
						<a href="http://jigsaw.w3.org/css-validator/check/referer">
							<img style="border:0;width:88px;height:31px"
								src="/image/vcss-blue.gif"
								alt="Правильный CSS!" />
						</a>
							<a href="http://validator.w3.org/check?uri=referer">
							<img style="border:0;width:88px;height:31px"
							src="/image/valid-xhtml10-blue.png"
							alt="Правильный XHTML 1.0!" height="31" width="88" />
							</a>

					</p>
					
				</div>
				<div id="content">
					<xsl:apply-templates select="content"/>
					<div id="footer">
						<xsl:value-of select="//version"/>
					</div>
				</div>
			</div>
		</div>
            </body>
        </html>
    </xsl:template>
    <xsl:template match="message">

		<iframe src="/jwchat/roster.html" name="jwc_main" width="100%" height="100%" scrolling="no" >Сообщения работают только с включенными фреймами</iframe>
	<hr />
    </xsl:template>
</xsl:stylesheet>
